<?php
namespace pfp\lib {
    
    \defined('_JEXEC') or die('Restricted access');

    /**
     * Description of pfp\lib\codeExecution_FlowControlException
     *
     * @author George Zeakis<zeageorge@google.com>
     */
    class codeExecution_FlowControlException extends \Exception{

        protected $_return = \NULL;

        /**
         * 
         * @param array $return
         * @param string $message
         * @param mix $code
         * @param \Exception $previous
         * @return pfp\lib\codeExecution_FlowControlException 
         */
        public function __construct(array $return = array(), $message = \NULL, $code = 0, \Exception $previous = \NULL){
            parent::__construct($message, $code, $previous);
            $this->_return = $return;
        }

        /**
         * 
         * @return array
         */
        public function getReturn(){
            return (array)$this->_return;
        }

        public function setReturn(array $newReturnValue){
            $this->_return = $newReturnValue;
        }
    }
}
?>
